package bar.dark.lee.setting.mybankauto;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import bar.dark.lee.setting.auto.AutoData;

public class MyBankAutoData implements Parcelable
{
	private String id; // id
	private String name; // 자동이체 이름
	private String outCategory; // 출금카테고리
	private String inCategory; // 입금카테고리
	private String money; // 금액
	private String susuMoney; // 금액
	private String autodate; // 자동이체 일
	private String signdate; // 자동이체 등록일
	private String outkind; // 출금통장 이름
	private String inkind; // 입금통장 이름
	private String memo; // 내용
	private String kind; // 통장이나 신용카드여부
	
	private String tempDate; // 자동이체 정렬후 날짜
	private int checkBox; // 체크박스 플래그 0 : 체크  1 : 체크안함
	
	public MyBankAutoData()
	{
		this.checkBox = 1;
	};
	
	public MyBankAutoData(Parcel source)
	{
		this.id = source.readString(); 
		this.name = source.readString(); 
		this.outCategory = source.readString(); 
		this.inCategory = source.readString(); 
		this.money = source.readString(); 
		this.susuMoney = source.readString(); 
		this.autodate = source.readString(); 
		this.signdate = source.readString(); 
		this.outkind = source.readString(); 
		this.inkind = source.readString(); 
		this.memo = source.readString(); 
		this.kind = source.readString(); 
		this.tempDate = source.readString(); 
		this.checkBox = source.readInt(); 
	}
	
	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getName());
		dest.writeString(this.getOutCategory());
		dest.writeString(this.getInCategory());
		dest.writeString(this.getMoney());
		dest.writeString(this.getSusuMoney());
		dest.writeString(this.getAutodate());
		dest.writeString(this.getSigndate());
		dest.writeString(this.getOutkind());
		dest.writeString(this.getInkind());
		dest.writeString(this.getMemo());
		dest.writeString(this.getKind());
		dest.writeString(this.getTempDate());
		dest.writeInt(this.getCheckBox());
	}
	
	public static Parcelable.Creator<MyBankAutoData> CREATOR = new Creator<MyBankAutoData>()
	{
		@Override
		public MyBankAutoData[] newArray(int size)
		{
			return new MyBankAutoData[size];
		}
		
		@Override
		public MyBankAutoData createFromParcel(Parcel source)
		{
			return new MyBankAutoData(source);
		}
	};
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getOutCategory()
	{
		return outCategory;
	}
	public void setOutCategory(String outCategory)
	{
		this.outCategory = outCategory;
	}
	public String getInCategory()
	{
		return inCategory;
	}
	public void setInCategory(String inCategory)
	{
		this.inCategory = inCategory;
	}
	public String getMoney()
	{
		return money;
	}
	public void setMoney(String money)
	{
		this.money = money;
	}
	public String getSusuMoney()
	{
		return susuMoney;
	}
	public void setSusuMoney(String susuMoney)
	{
		this.susuMoney = susuMoney;
	}
	public String getAutodate()
	{
		return autodate;
	}
	public void setAutodate(String autodate)
	{
		this.autodate = autodate;
	}
	public String getSigndate()
	{
		return signdate;
	}
	public void setSigndate(String signdate)
	{
		this.signdate = signdate;
	}
	public String getOutkind()
	{
		return outkind;
	}
	public void setOutkind(String outkind)
	{
		this.outkind = outkind;
	}
	public String getInkind()
	{
		return inkind;
	}
	public void setInkind(String inkind)
	{
		this.inkind = inkind;
	}
	public String getMemo()
	{
		return memo;
	}
	public void setMemo(String memo)
	{
		this.memo = memo;
	}
	public String getKind()
	{
		return kind;
	}
	public void setKind(String kind)
	{
		this.kind = kind;
	}
	public String getTempDate()
	{
		return tempDate;
	}
	public void setTempDate(String tempDate)
	{
		this.tempDate = tempDate;
	}
	public int getCheckBox()
	{
		return checkBox;
	}
	public void setCheckBox(int checkBox)
	{
		this.checkBox = checkBox;
	}
}
